package STUDENT.DAODUCGIANG.BASIC.MY_FIRST_JAVA_PROGRAM;

public class Teacher {
//1. Bien doi tuong
	int MaGV;
	String HovaTen;
	String DienThoai;
	
//2. Ham khoi dung cho doi tuong <Constructor>
	//Trung ten voi ten lop doi tuong
	//khong co kieu tra ve va mac dinh la public
	//Doi tuong k khai bao thi ham khoi dung k tham so
	//Co 2 loai: co va k tham so
	
	// ktham so:
	public Teacher() {
		MaGV = -1;
		HovaTen = "Chua xac dinh";
		DienThoai = "Chua co";
	}

	//co tham so:
	public Teacher(int MaGV, String HovaTen, String Phone){
		this.MaGV = MaGV;
		this.HovaTen = HovaTen;
		DienThoai = Phone;
	}
//3. Thuoc tinh
	// La thanh phan cho phep lay thon tin ben doi tuong 
	// hoac thiet lap thong tin cho bien doi tuong
	// The hien qua Get hoac Set: 
	// Get - lay thong tin ve. Set: thiet lap thoong tin

	public int getMaGV() {
		return MaGV;
	}

	public void setMaGV(int maGV) {
		MaGV = maGV;
	}

	public String getHovaTen() {
		return HovaTen;
	}

	public void setHovaTen(String hovaTen) {
		HovaTen = hovaTen;
	}

	public String getDienThoai() {
		return DienThoai;
	}

	public void setDienThoai(String dienThoai) {
		DienThoai = dienThoai;
	}

//4. Phuong thuc - the hien hanh vi cua doi tuong hien thoi
	public String Tainang(){
		return "Chem gio";
	}
	

}